package com.ayitubie.refuelweb.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel("用户基本信息")
public class User {
    @ApiModelProperty("用户ID")
    private int userId;
    @ApiModelProperty("用户名")
    private String userName;
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private String password;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("牌照")
    private String license;
    @ApiModelProperty("车型")
    private String carType;
    private String mileage;
    @ApiModelProperty("行驶里程数")
    private float payTotal;
    @ApiModelProperty("加油记录")
    private List<RefuelLog> refuelList;
}
